home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
003
/
chrchpr4.arc
/
FCSDATES.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1979-12-31
|
3KB
|
87 lines
* Program FCSDATES - Sets up for member changes/inactives/birthdays reports
ERASE
@ 1,1 say chname
@ 1,40 say 'Month of comparison is: '+curdate
@ 2,1 say 'DATA DISK = '+D
@ 3,10 Say ' Special Full-Membership Selections 2-5-/FCSDATES/'
@ 6,10 say '1) Wedding Anniversaries This Month [OL]'
@ 7,10 say '2) Birthdays This Month [CL]'
@ 8,10 say '3) New People This Month [CL]'
@ 9,10 say '4) People with Address/Phone Changes This Month [CL]'
@ 10,10 say '5) People Just Made Full-Church-Inactive This Month [CL]'
@ 11,10 say '6) All Full-Church-Inactive People [CL]'
?
Accept ' Enter selection ' to NSEL
?
Store d+':MEMBERS index '+d+':MEMBERS' to MFILE
USE &MFILE
Store 'ALL' to ANAME1
Store T to INVALID1
Do while INVALID1
Store F to INVALID1
Store F to BRTHDAYS
Do case
CASE NSEL='1'
Store d+':FCMEMBRS' to MFILE
Store d+':FCMEMBRS.NDX' to MFILENDX
If .not. file(MFILE) .or. .not. file(MFILENDX)
? 'FCMEMBERS file not found. Now creating it.'
Do MGFCROST.CMD
Store d+':FCMEMBRS' to MFILE
endif
USE &MFILE index &MFILENDX
Store CHNAME+' - Wedding Anniversaries this Month ' to actvname
Store 'ALL' to ANAME1
Store 'ANAME1' to ANAME
Store "($(SPEC:DATES,10,2)<>$(indate,1,2))" to BNAME
Store 'Anniversary' to FCOLHDR
Store '$(spec:dates,10,8)' to fcolumn
Store '~' to MSEL
Do MONELINE.CMD
CASE NSEL='2' .or. NSEL='3' .or. NSEL='4' .or. NSEL='5' .or. NSEL='6'
If NSEL='2'
Store CHNAME+' BIRTHDAYS for ' to actvname
Store "$(MEMBSTATUS,2,1)='*' .or. $(birthdate,1,2)<>inbmo)" to BNAME
Store T to BRTHDAYS
else
if NSEL='6'
Store CHNAME+' ALL INACTIVES - - ' to ACTVNAME
Store "$(MEMBSTATUS,2,1)<>'*' ) " to BNAME
else
if NSEL='3'
Store CHNAME+' New People in ' to ACTVNAME
Store "$(membstatus,2,1)='*' .or. $(dates,1,4)<>inmo) " to BNAME
else
if NSEL='4'
Store CHNAME+' Address / Phone Changes - ' to ACTVNAME
Store "$(membstatus,2,1)='*' .or. $(dates,6,4)<>inmo) " to BNAME
else
if NSEL='5'
Store CHNAME+' Inactive People, as of ' to ACTVNAME
Store "$(membstatus,2,1)<>'*' .or. $(dates,6,4)<>inmo) " to BNAME
endif
endif
endif
endif
endif
? 'Now printing a Changes List.'
DO MSPMINAC.CMD
CASE !(NSEL)='Q'
Store F to LEVEL3
STORE F TO LEVEL2
OTHERWISE
ACCEPT 'Illegal entry. Please enter again ' to NSEL
Store T to INVALID1
ENDCASE
ENDDO
RETURN
irthdate,1,2)<>inbmo)" to BNAME
Store T to BRTHDAYS
else
if NSEL='6'
Store CHNAME+' ALL INACTIVES - - ' to ACTVNAME
Store "$(MEMBSTATUS,2,1)<>'*' ) " to BNAME
else
if NSEL='3'
Store CHNAME+' New People in ' to ACTVNAME
Store "$(membstatus,2,1)='*' .or. $(d